package com.eastfair.venuebooking.dto;

import com.eastfair.common.dto.AttachmentFileDTO;
import com.eastfair.core.base.entity.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 材料申报
 * </p>
 *
 * @author linan
 * @since 2022-06-10
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "MaterialDeclarationDTO", description = "材料申报")
public class MaterialDeclarationDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 校验标识
     */
    public interface Check {};

    @ApiModelProperty(value = "主键")
    @NotNull(message = "请填写主键", groups = SuperEntity.Update.class)
    private Long id;

    /**
     * 申报材料名称
     */
    @ApiModelProperty(value = "申报材料名称")
    @Size(max = 255, message = "申报材料名称长度不能超过255",groups = {Check.class})
    private String materialName;
    /**
     * 附件url
     */
    @ApiModelProperty(value = "附件url")
    @Size(max = 255, message = "附件url长度不能超过255",groups = {Check.class})
    private String attamentUrl;
    /**
     * 材料编号
     */
    @ApiModelProperty(value = "材料编号")
    @Size(max = 64, message = "材料编号长度不能超过64",groups = {Check.class})
    private String materialNo;
    /**
     * 项目备注
     */
    @ApiModelProperty(value = "项目备注")
    @Size(max = 512, message = "项目备注长度不能超过512",groups = {Check.class})
    private String projectRemark;
    /**
     * 材料模版
     */
    @ApiModelProperty(value = "材料模版")
    @NotNull(message = "材料模版必填",groups = {Check.class})
    private AttachmentFileDTO attachmentFile;
}
